Port knuth_hash to odd platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2024 15:42:57 +0000 (08:42 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 May 2024 15:58:14 +0000 (08:58 -0700)
commit9bcd644408367b1d57e62a7f73b4ef4a3cd366b4
tree3872ce5db729ba26cd747bece714e6a2a1302ce7
parentc07160b8df4e9f795dd73f08a3399ccef465c898
Port knuth_hash to odd platforms

* src/lisp.h (hash_hash_t, knuth_hash): Use unsigned int and
unsigned long long int rather than uint32_t and uint64_t, as POSIX
does not guarantee the presence of uint64_t, and uint32_t and
uint64_t both in theory have problems with undefined behavior on
integer overflow.  This doesn’t affect behavior (or even machine
code) on typical platforms.
src/lisp.h